package com.heifeng.cloudshelf.mvp.main.contract;

import android.app.Activity;
import android.widget.ImageView;

import com.heifeng.cloudshelf.base.BaseResponse;
import com.heifeng.cloudshelf.base.IBasePresenter;
import com.heifeng.cloudshelf.base.IBaseView;
import com.heifeng.cloudshelf.widget.CustomVideoPlayer;
import com.youth.banner.Banner;

/**
 * Created by admin on 2019/9/10.
 */

public class MainActivityContract {
    public interface View extends IBaseView {
        Banner getBanner();

        CustomVideoPlayer getPlayer();

        void setLoginOutView(boolean isVisibility);

        void setImageAndVideoData(String imageUrl, String videoUrl,String videoPic);

        boolean isGetPermissions();

        void ToastVersion(boolean isNewVersion, String version);

        boolean netConnect();

        void locationError();

        void toastCodeText(BaseResponse baseResponse);

        void animationEnd(int type);

        Activity getThisActivity();
    }

    public interface Presenter extends IBasePresenter<View> {
        void init();

        void ShowLogoutDialog();

        void ShowTimeOverDialog(String message);

        void ShowLocationFaildDialog();

        void ShowLocationUnableDialog();

        void ShowLoginDialog();

        void ShowAllowLocationDialog();

        void UpdateTipsDialog();

        void UpdateFinishedDialog();

        void UpdateProgressDialog();

        void ImageViewClickChange(ImageView imageView,int type);

        void getAdvertising();

        void gdLocation();

        void checkUpdateApp();
    }
}
